#ifndef _POWERUP_H_
#define _POWERUP_H_

#include "Object.h"

#define POWERUP_VX	0.1
#define GRAVITY		0.01

/************************************************************************/
/*Power la nam khi mario con nho, la hoa khi mario da lon				*/
/************************************************************************/

class PowerUp : public Object
{
	//Object* container;				//object chua item, mac dinh item k hien len

	float _xOld;
	float _yOld;

	//float _vx;
	//float _vy;

	//float _accelY;

	bool	isMushroom;				//la nam
	bool	isCheckedContainer;

	bool isGravity;

public:
	/*
	 *	Get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Constructor/Destructor
	 */
	PowerUp(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State, int Direction);
	~PowerUp();


	/*
	 *	Method
	 */
	//void Render();
	//void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);
	void checkObjects(list<Object*>* obj_list);
	void move(list<Object*>* obj_list, float TPF);


	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void render(int cameraX, int cameraY);
	void changeState(int state);

	
};

#endif